package mua.core.value;

public class MuaValue {
    protected Object value;

    public MuaValue(){ }

    public MuaValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString(){
        return value.toString();
    }

    public Object getValue(){
        return value;
    }

    @Override
    public int hashCode() {
        return value.hashCode();
    }

    @Override
    public boolean equals(Object o) {
        if (!(o instanceof MuaValue)){
            return false;
        }else {
            return this.getValue().equals(((MuaValue)o).getValue());
        }
    }
}
